home *** CD-ROM | disk | FTP | other *** search
/ Champak 62 / Volume 62 - JOGO DISK .iso / Games / missioncandy.swf / scripts / DefineButton2_371 / BUTTONCONDACTION on(release).as
Text File  |  2008-03-17  |  224b  |  13 lines

  1. on(release){
  2.    stopAllSounds();
  3.    _parent.m_level = _parent.m_level + 1;
  4.    if(_parent.m_level == 4)
  5.    {
  6.       _parent.goEnding();
  7.    }
  8.    else
  9.    {
  10.       _parent.gotoAndPlay("GAME" + _parent.m_level);
  11.    }
  12. }
  13.